using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class TestSetEnable : MonoBehaviour
{
    // Start is called before the first frame update
    private void Start()
    {
        // 获取当前脚本是否激活
        Debug.Log(this.enabled);

        // 控制当前脚本是否激活
        // enable属性是一个可读可写属性, 所以这里才能赋值, 有的属性是只读的就不能赋值. 
        this.enabled = false;
    }

    // Update is called once per frame
    private void Update()
    {
    }
}